/**
 * Created by hasee on 2017/10/17.
 */
public class main {
    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedListImpl();
        try {
            myLinkedList.insert(0,"2");
            myLinkedList.insert(1,"3");
            myLinkedList.insert(0,"4");
        } catch (Exception e) {
            e.printStackTrace();
        }
        myLinkedList.display();
        try {
            myLinkedList.remove(2);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.out.println("----------------");
        myLinkedList.display();
        System.out.println("----------------");
        try {
            System.out.println( myLinkedList.getElement(0));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
